// pages/personal/questionnaire/investigation/investigation.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    array: ['男', '女'],
    age: ['20-30', '30-40'],
    price:['8000','10000','12000','15000'],
    occupation:['白领','机关','个体','程序员'],
    habit:['有','无'],
    motion:['健身器材','瑜伽','有氧运动'],
    objective:['身材','健康','运动'],
    frequency:['1','2','3','4','5','6','7'],
    index: 0,
    index1: 0,
    index2: 0,
    index3: 0,
    index4: 0,
    index5: 0,
    index6: 0,
    index7: 0
  },
  bindPickerChange: function (e) {
    this.setData({
      index: e.detail.value
    })
  },
  bindAgeChange: function (e) {
    this.setData({
      index1: e.detail.value
    })
  },
  bindPriceChange: function (e) {
    this.setData({
      index2: e.detail.value
    })
  },
  bindOccupationChange: function (e) {
    this.setData({
      index3: e.detail.value
    })
  },
  bindHabitChange: function (e) {
    this.setData({
      index4: e.detail.value
    })
  },
  bindMotionChange: function (e) {
    this.setData({
      index5: e.detail.value
    })
  },
  bindObjectiveChange: function (e) {
    this.setData({
      index6: e.detail.value
    })
  },
  bindFrequencyChange: function (e) {
    this.setData({
      index7: e.detail.value
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})